#include "Widget.h"

#include <qpainter.h>
#include <QSizePolicy>
namespace UserManagementSystem {
Widget::Widget(QWidget *parent)
    : QWidget(parent)
{
    this->showMaximized();


}
Widget::~Widget() {}

void Widget::paintEvent(QPaintEvent *event)
{
    QPainter painter(this);

    painter.setRenderHint(QPainter::Antialiasing);

    //先把窗口绘制为半透明灰色
    painter.fillRect(rect(),QColor(128,128,128,60));

}

}

